package com.kedacom.freedomLabel.model.bean;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import java.util.UUID;

/**
 * Author：李程
 * CreateTime：2019/5/2 19:01
 * E-mail：licheng@kedacom.com
 * Describe：配置表
 */
@Entity
public class Config {

    @ColumnInfo(name = "configKey")
    @PrimaryKey
    @NonNull
    public String configKey = UUID.randomUUID().toString();

    @ColumnInfo(name = "configValue")
    public String configValue;

    public Config() {
    }

    @Ignore
    public Config(@NonNull String configKey, String configValue) {
        this.configKey = configKey;
        this.configValue = configValue;
    }
}